// UE3dSolidOsnapMode.cpp: implementation of the UE3dSolidOsnapMode class.
//
//////////////////////////////////////////////////////////////////////



#include "stdafx.h"
#include "UE3dSolidOsnapMode.h"


#include "UEEntityOsnapInfo.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

#include <dbmain.h>
#include <rxobject.h>
#include <dbosnap.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

namespace Ue3dSolid
{
	UE3dSolidOsnapMode::UE3dSolidOsnapMode()
	{
		this->m_pGlyph = NULL;
		this->m_pRCOsnapInfo = NULL;
		this->m_strGlobalModel = NULL;
		this->m_strLocalModel = NULL;
		this->m_strTooltip = NULL;
	}
	
	UE3dSolidOsnapMode::~UE3dSolidOsnapMode()
	{
		if ( this->m_pGlyph )
		{
			delete this->m_pGlyph;
			this->m_pGlyph = NULL;
		}
	}
	
	const char* UE3dSolidOsnapMode::localModeString() const
	{
		return this->m_strLocalModel;
	}
	
	const char* UE3dSolidOsnapMode::globalModeString() const
	{
		return this->m_strGlobalModel;
	}
	
	const AcRxClass* UE3dSolidOsnapMode::entityOsnapClass() const
	{
		return this->m_pRCOsnapInfo;
	}
	
	AcGiGlyph* UE3dSolidOsnapMode::glyph() const
	{
		return this->m_pGlyph; 
	}
	
	const char* UE3dSolidOsnapMode::tooltipString() const
	{
		return this->m_strTooltip;
	}
}
